const initState = [];
function data(state = initState, action) {
  switch (action.type) {
    case "GET_DATA":
      return [...state, ...action.payload];
    default:
      return state;
  }
}

export default data;
